home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / sparcmgr / demo1.zoo / demo / msg / send.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-24  |  905 b   |  34 lines

  1. /*    $Header: send.c,v 4.1 88/06/21 14:02:46 bianchi Exp $
  2.     $Source: /tmp/mgrsrc/demo/msg/RCS/send.c,v $
  3. */
  4. static char    RCSid_[] = "$Source: /tmp/mgrsrc/demo/msg/RCS/send.c,v $$Revision: 4.1 $";
  5.  
  6. /*                        Copyright (c) 1987 Bellcore
  7.  *                            All Rights Reserved
  8.  *       Permission is granted to copy or use this program, EXCEPT that it
  9.  *       may not be sold for profit, the copyright notice must be reproduced
  10.  *       on copies, and credit should be given to Bellcore where it is due.
  11.  *       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  12.  */
  13. #include    "term.h"
  14.  
  15. /* sent a message to a server */
  16.  
  17. main(argc,argv)
  18. int argc;
  19. char **argv;
  20.    {
  21.    char *dot, *index();
  22.  
  23.    ckmgrterm( *argv );
  24.  
  25.    if (argc < 2)
  26.       exit (0);
  27.  
  28.    if (dot=index(argv[1],'.'))
  29.       *dot = '\0';
  30.  
  31.    m_setup( M_FLUSH );
  32.    m_sendto( atoi(argv[1]), "F $" );
  33.    }
  34.